package grpc

import (
	"gitlab.local/backend/proto/auth"
	"gitlab.local/backend/proto/ota"
	"gitlab.local/backend/proto/shadow"
	"gitlab.local/backend/proto/signal"
	"manager/config"
)

// UserClient example client, in reality, you should replace it with your own grpc client
// var UserClient example.UserService
var (
	Cmd  signal.SignalService
	UCmd user.UserService
	SCmd shadow.ShadowService
	OCmd ota.OtaService
)

func Init() func() {
	Cmd = signal.NewSignalService("signal-grpc", config.MicroService.Client())
	UCmd = user.NewUserService("auth-grpc", config.MicroService.Client())
	SCmd = shadow.NewShadowService("shadow-grpc", config.MicroService.Client())
	OCmd = ota.NewOtaService("ota-grpc", config.MicroService.Client())
	return func() {}
}
